# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-dython
pkgver=0.7.4
pkgrel=0
pkgdesc="A set of data tools in Python"
url="https://github.com/shakedzy/dython"
arch="noarch !riscv64 !s390x" #py3-matplotlib #scikit-learn
license="MIT"
depends="
	py3-matplotlib
	py3-numpy
	py3-pandas
	py3-psutil
	py3-scikit-learn
	py3-scikit-plot
	py3-scipy
	py3-seaborn
	python3
	"
checkdepends="py3-hypothesis py3-pytest py3-pytest-black"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/shakedzy/dython/archive/v$pkgver.tar.gz"
builddir="$srcdir/dython-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m venv --clear --without-pip --system-site-packages .testenv
	.testenv/bin/python3 -m installer .dist/*.whl
	.testenv/bin/python3 -m pytest -k 'not nominal and not test_associations and not test_associations_parallel'
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
cadee71536e6e96b16ca09df0a512625e312c553061b28e274afdbdc7d00a8f0a9e75a050bc1658c5360d1786505ca84ba51273e2e38d9be3d2eaa61f8616f7e  py3-dython-0.7.4.tar.gz
"
